:root {
    --bg-color:rgb(71,72,75);
    --bg-light-color: #1f1919;
    --bg-dark-color: rgb(71,72,75);
    --light-link-color: #6c5050;
    --dark-link-color: #333;
    --light-font-color: #fff;
    --dark-font-color:#333;
    --color-link: #2f3338;
    --color-link-hover: #111;
}

body, html { font-size: 100%; padding: 0; margin: 0;}

body.light {
    background-color: var(--bg-light-color);
    color: var(--dark-font-color);
}

body.light a{
    color: var(--dark-link-color);
}

body.dark{
    background-color: var(--bg-dark-color);
    color:var(--light-font-color)
}

body.dark a{
    color:var(--light-link-color)
}

/* Reset */
*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

ul, li {
    list-style: none;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    text-align: center;
    color: #333;
}

h2 {
    color: #555;
}

.section {
    margin-bottom: 40px;
}

.item {
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
}

.item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
}

.item:hover::after {
    background-color: #ff6600;
    animation: moveCursor 2s infinite linear;
}

@keyframes moveCursor {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0);
    }
}

.poetry-item {
    background-color: transparent;
}

.poetry-item > div {
    background-color: #e6f7ff;
    padding: 10px;
}

.prose-item {
    background-color: #fff2e6;
}

.novel-item {
    background-color: #f2e6ff;
}

.painting-item {
    background-color: #e6ffe6;
}

.calligraphy-item {
    background-color: #fff0f5;
}

@media (max-width: 768px) {
    .item {
        width: 100%;
    }
}

.frame-container {
    width: 100%;
    height: 100%;
}

.frame-container iframe {
    width: 100%;
    height: 800px;
    border: none;
}

.header {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.link__content {
    display: flex;
}

.content__item {
    width: 100%;
    height: 100%;
    margin-left: 20px;
    padding: 0;
    counter-increment: itemcounter;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.link {
    cursor: pointer;
    font-size: 18px;
    position: relative;
    white-space: nowrap;
    color: var(--color-link);
    text-decoration: none;
}

.link::before,
.link::after {
    position: absolute;
    width: 100%;
    height: 1px;
    background: currentColor;
    top: 100%;
    left: 0;
    pointer-events: none;
}

.link::before {
    content: '';
}

.link--iocaste {
    font-family: lust-fine, sans-serif;
    overflow: hidden;
    padding: 7px 0;
}

.link__graphic {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    fill: none;
    stroke: #3b2f2f;
    stroke-width: 1px;
}

body.light .link__graphic {
    stroke: var(--color-link-hover);
}

.link__graphic--slide {
    top: -3px;
    stroke-width: 2px;
    transition: transform 0.7s;
    transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1);
}

.link:hover .link__graphic--slide {
    transform: translate3d(-66.6%, 0, 0);
}

.related {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.related .links {
    display: flex;
}

.related .links a {
    display: block;
    padding: 15px;
    text-decoration: none;
}

.related .links a img {
    width: 300px;
}

.related .links a h3 {
    text-align: center;
    font-size: 16px;
    font-weight: 500;

}